<h3>加入团购单</h3>

<% form_for(@tuangou_pro) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :title,"团购标题" %>
    <%= f.text_field :title %>
    <%=f.hidden_field :product_id,:value=>params[:product_id] %>
    <%=f.hidden_field :state,:value=>0 %>
    <%=f.hidden_field :click_count,:value=>0 %>
  </p>
  <p>
    <%= f.label :tprice ,"团购价"%>
    <%= f.text_field :tprice%>
  </p>
  <p>
    <%= f.label :description ,"描述"%>
    <%= f.text_area :description %>
  </p>
  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>


